package com.sy.simpleegg.mvp.contract

import com.sy.simpleegg.base.IModel
import com.sy.simpleegg.base.IPresenter
import com.sy.simpleegg.base.IView

interface UpgradeContract {
    interface View: IView {
        fun refreshProgress(progress: Int)

        fun downloadSuccess(path: String)

        fun failed(msg: String)
    }

    interface Presenter: IPresenter<View> {
        fun downloadApp(savePath: String, apkName: String, url: String)
    }

    interface Model: IModel {
        suspend fun downloadApp(savePath: String, apkName: String, url: String)
    }
}